Type

enum Type : ProtocolMessageEnum

TODO: REPLACE
Protobuf enum meshtastic.HardwareMessage.Type

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

The gpios listed in gpio_mask have changed, the new values are listed in gpio_value
GPIOS_CHANGED = 3;
Link copied to clipboard

A reply to READ_GPIOS. gpio_mask and gpio_value will be populated
READ_GPIOS_REPLY = 5;
Link copied to clipboard

Read the gpios specified in gpio_mask, send back a READ_GPIOS_REPLY reply with gpio_value populated
READ_GPIOS = 4;
Link copied to clipboard
val UNSET_VALUE: Int = 0

Unset/unused
UNSET = 0;
Link copied to clipboard

We are now interested in watching the gpio_mask gpios.
If the selected gpios change, please broadcast GPIOS_CHANGED.
Will implicitly change the gpios requested to be INPUT gpios.
WATCH_GPIOS = 2;
Link copied to clipboard

Set gpio gpios based on gpio_mask/gpio_value
WRITE_GPIOS = 1;

Functions

Link copied to clipboard
Link copied to clipboard
open fun getDescriptor(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getDescriptorForType(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getNumber(): Int
Link copied to clipboard
fun getValueDescriptor(): Descriptors.EnumValueDescriptor
Link copied to clipboard
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): RemoteHardware.HardwareMessage.Type

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.